#include "utils/core-module.hpp"

using namespace cas;

SLOG_COMPONENT_DEFINE("GlobalValueExample");

static GlobalValue g_str_a("a", "string value a", "valueA");
static GlobalValue g_str_b("b", "string value b", "b's default value");

int main(int argc, char *argv[])
{
    LogSetTimePrinter(&DefaultTimePrinter); // activate time printer

    CommandLine cmd;
    cmd.Parse(argc, argv);

    std::string a = g_str_a.GetValue();
    std::cout << "a:" << a << std::endl;

    std::string b = g_str_b.GetValue();
    std::cout << "b:" << b << std::endl;

    return 0;
}